# Main program
parser = argparse.ArgumentParser()
-parser.add_argument("--script",
- help="Specify the path to the automation script to run")
+parser.add_argument("script",
+ metavar="AUTOMATION_SCRIPT",
+ help="Automation script to run")
parser.add_argument("--test-iters", type=int, metavar="ITERS",
help="Numbers of iterations of the test to run",
default=1)
options = parser.parse_args()
-if options.script == None:
- if options.hwtest:
- options.script = 'resource:///org/gnome/shell/perf/hwtest.js'
- else:
- options.script = 'resource:///org/gnome/shell/perf/core.js'
-
if options.extra_filter is None:
options.extra_filter = []
args: [
test_tool,
'--headless',
- '--script=@0@/js/perf/@1@.js'.format(meson.project_source_root(), test_name),
options,
+ '@0@/js/perf/@1@.js'.format(meson.project_source_root(), test_name),
],
is_parallel: false,
env: shell_testenv,